import request from '@/utils/request.js'
// 将所有的针对admin的请求，都封装到一个对象中
const adminApi = {
    list(conditions) {
        /*return axios.get('http://localhost:8080/admin/list', {params: conditions})
            .then(response => {
                console.log(response)
                return response.data
            })*/
        return request.get('/admin/list', {params: conditions})
    }
}

export default adminApi